import { createRouter, createWebHistory } from 'vue-router'
import { isMobileDevice } from "@/utils/env";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 入口动态监听电脑端或者移动端
    // { path: "/", redirect: isMobileDevice() ? "/phone" : "/pc" },
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
    },
  ],
})

export default router
